apiVersion: v1
clusters:
- name: cluster-ssl
  cluster:
    certificate-authority: {{ ca_cert }}
    server: {{ kube_api.url }}
- name: cluster-sslskip
  cluster:
    server: {{ kube_api.url }}
    insecure-skip-tls-verify: true
contexts:
- context:
    cluster: cluster-ssl
    user: kubelet-devmaster
  name: kubelet-devmaster@cluster-ssl
- context:
    cluster: cluster-sslskip
    user: admin_auth
  name: admin@cluster-sslskip
{% if auth_mode == 'ABAC' -%}
current-context: admin@cluster-sslskip
{% else %}
current-context: kubelet-devmaster@cluster-ssl
{% endif -%}
kind: Config
users:
- name: kubelet-devmaster
  user:
    client-certificate: {{ node_cert }}
    client-key: {{ node_key }}
- name: admin_auth
  user:
   username: {{ admin_user }}
   password: {{ admin_pass }}
